package com.youlai.boot.modules.resource.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.boot.modules.resource.model.Resource;
import com.youlai.boot.modules.resource.model.ResourceForm;
import com.youlai.boot.modules.resource.model.ResourceVO;
import com.youlai.boot.modules.resource.model.ResourcePageQuery;

public interface ResourceService extends IService<Resource> {
    Page<ResourceVO> getResourcePage(ResourcePageQuery query);

    ResourceVO getResourceById(Long id);

    Long saveResource(ResourceForm form);

    void updateResource(ResourceForm form);

    boolean deleteResource(Long id);
}